<!DOCTYPE html>
<html>
<head>
  <meta chardata="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  
    {include file="public/css"}
    {include file="public/js"}
</head>
<body>

<!-- 后台面包导航 -->
{:get_admin_breadcrumb()}

<blockquote class="layui-elem-quote" style="margin-top:10px;">说明：</blockquote>

<form class="layui-form" action="">
 <input type="hidden" name="groupname" value="{$Request.action}">

<div class="layui-tab layui-tab-brief " lay-filter="docDemoTabBrief">
  <ul class="layui-tab-title">
    <li class="layui-this">用户注册</li>
    <!-- <li >用户认证</li> -->
  </ul>

  <div class="layui-tab-content" style="height: 100px;">
    <div class="layui-tab-item layui-show">
              <div class="layui-form-item">
                <label class="layui-form-label">新用户注册</label>
                <div class="layui-input-inline" style="width:110px">
                   <input type="radio" name="data[new_register]" value="0"  {if  $settings.user.new_register ==0}checked{/if}  title="自动审核" >
                </div>

                <div class="layui-input-inline" style="width:110px">
                   <input type="radio" name="data[new_register]" value="2"   {if  $settings.user.new_register ==1}checked{/if title="人工审核" >
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
              </div>

              <div class="layui-form-item">
                <label class="layui-form-label">邮件认证</label>
                <div class="layui-input-inline">
                   <input type="radio" name="data[validate_email_status]" value="1"  {if  $settings.user.validate_email_status ==0}checked{/if}  title="开启" checked="">
                   <input type="radio" name="data[validate_email_status]" value="0"  {if  $settings.user.validate_email_status ==0}checked{/if}  title="关闭">
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
              </div>
              <div class="layui-form-item">
                <label class="layui-form-label">手机认证</label>
                <div class="layui-input-inline">
                        <input type="radio" name="data[validate_mobile_status]" value="1"  {if  $settings.user.validate_mobile_status ==0}checked{/if}  title="开启" checked="">
              <input type="radio" name="data[validate_mobile_status]" value="0"  {if  $settings.user.validate_mobile_status ==0}checked{/if}  title="关闭">
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
              </div>

       

               <div class="layui-form-item">
                <label class="layui-form-label"> 实名认证</label>
                <div class="layui-input-block">
                  <input type="radio" name="data[validate_realname_status]" value="1"  {if  $settings.user.validate_realname_status ==0}checked{/if}  title="开启" checked="">
                  <input type="radio" name="data[validate_realname_status]" value="0"  {if  $settings.user.validate_realname_status ==0}checked{/if}  title="关闭">
                </div>
              </div>   

</div>

    <div class="layui-tab-item">

               
              
  </div>
               <div class="layui-form-item">
                 <label class="layui-form-label"></label>
                  <div class="layui-input-block">
                      <button class="layui-btn layui-btn-normal" lay-submit="" lay-filter="form">确定</button>
                   </div>
                </div>

</div> 
</div> 
</form>

<script>
layui.use('form', function(){
  var form = layui.form;
  

  form.on('submit(form)', function(data){
    // layer.msg(JSON.stringify(data.field));
    var data =data.field;
    $.post("{:url('settings/update')}",data,function(json){
       if(json.code == 0){
           layer.msg(json.msg);
       }else if(json.code == -1){
           layer.msg(json.msg);
       }
    });
    return false;
  });
});
</script>

</body>

</html>